import Vue from "vue";
import App from "./App.vue";
import router from "./router"; // 路由
import store from "./store"; // 引入store
import $axios from "./utils/axios.js"; // axios 配置文件
import Antd from "ant-design-vue";
import "ant-design-vue/dist/antd.css";

import myFooter from "./components/common/Footer";

// 公共组件

Vue.config.productionTip = false;
// 全局属性
Vue.prototype.$axios = $axios;
Vue.prototype.$set = Vue.set; // 解决对象赋值视图不更新

// 公共组件
Vue.component("myFooter", myFooter);

Vue.use(Antd);

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount("#app");
